<table class="accounts table jstable">
    <caption>{{accounts_caption}}</caption>
    <thead>
        <tr>
            <th>Account</th>
            <th>Type</th>
            <th class="money">Balance</th>
        </tr>
    </thead>
    <tbody>
        {% for account in accounts %}
        <tr class="{% cycle odd even %}">
            <td class="name">
                <a href="{% url account_details account_id=account.id %}">{{account.name}}</a>
            </td>
            <td class="name">
                {{account.get_account_type_display}}
            </td>
            <td class="balance money">
                {{account.balance}} €
            </td>
        </tr>
        {% endfor %}
    </tbody>
    <tfoot>
        <tr>
            <td>
            </td>
            <td>
                total:
            </td>
            <td class="money">
                {{ total }} €
            </td>
        </tr>
    </tfoot>
</table>
